import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;


public class fileRead {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("src/test.txt")));
		BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
		String input = "";
		boolean flag = true;
		while(flag){
			input = br.readLine();
			if(input != null){
				bw.write(input + "\n");
			}
			else{
				flag = false;
			}
		}
		bw.flush();
		br.close();
	}

}
